<?php


class Model_User extends Model_Main{


   


    public function  __construct($id = null) {

        parent::__construct(new Model_DbTable_Users());

        if(isset($id)){
           $this->_row = $this->_dbTable->find($id)->current();
        }else{
            $this->_row = $this->_dbTable->createRow();
       }


    }



    public function getAllUsers(){

        return $this->_dbTable->fetchAll();

    }


    




}
